package com.riant.test8;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class Test5 {
    public static void main(String[] args) {
        Collection collection=new ArrayList();
        collection.add("acg");
        collection.add(11);
        collection.add(11.2);
        collection.add(12);
        collection.add(13);
        System.out.println("list:"+collection);
        Collection collection1= Collections.checkedCollection(collection,Integer.class);
        System.out.println("after check,list:"+collection1);



    }
}
